-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MusicXML export: Make rests before making notation #1361
Conversation
>>> v = stream.Voice(note.Note()) | ||
>>> m = stream.Measure([meter.TimeSignature(), v]) | ||
>>> GEX = musicxml.m21ToXml.GeneralObjectExporter(m) | ||
>>> out = GEX.parse() # out is bytes | ||
>>> outStr = out.decode('utf-8') # now is string | ||
>>> '<note print-object="no" print-spacing="yes">' in outStr | ||
True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test is moved to fromGeneralObject() doctest
# workaround until getET() helper starts calling fromGeneralObject | ||
s = GeneralObjectExporter().fromGeneralObject(s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We really need to get all the musicxml tests to declare whether or not they depend on notation being made. This was a problem before we added makeNotation=False as an option -- essentially, getET() bypasses part of the normal musicxml export path.
Thanks! |
Follow up to #1242. Didn't quite fix #904 because we need to make rests before making notation (if we are to have the opportunity to re-express the rests inside tuplets).